package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingLevelDTO;
import com.zzyl.entity.NursingLevel;
import com.zzyl.service.NursingLevelService;
import com.zzyl.vo.NursingLevelVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingLevelMapper {

    List<NursingLevelVO> findAll();

    NursingLevel selectByName(String name);

    void  insertNursingLevel(NursingLevelDTO nursingLevelDTO);

    Page<List<NursingLevel>> listByPage(Integer pageNum, Integer pageSize, Integer status, String name);

    NursingLevelVO selectById(Long id);

    void updateNursingLevel(NursingLevelDTO nursingLevelDTO);

    void editStatus(Integer id, Integer status);

    void deleteById(Integer id);
}
